package cn.sytton.taffe.web.flw.help;

/**
 * 常量
 *
 * @author skyrock
 */
public interface constant {
    /**
     * 流程变量key - formInstance
     */
    String FLOW_VARS_FORM_INSTANCE = "formInstance";

    /**
     * 流程变量key - applyUserId
     */
    String FLOW_VARS_APPLY_USER_ID = "applyUserId";

    /**
     * 流程变量key - applyUserName
     */
    String FLOW_VARS_APPLY_USER_NAME = "applyUserName";

    /**
     * 流程执行监听start, end事件
     */
    enum FLOW_LISTENER_EVENT{ START, END }
    /**
     * 流程节点类型
     */
    enum ACTIVITY_TYPE{ TASK, START, END}

    enum FLOW_STATUS {
        DRAFT(0), ING(1), PASS(2), REJECT(3), COMPLETED(4);
        private final int val;
        FLOW_STATUS(int val) {
            this.val = val;
        }
        public int getVal() {
            return this.val;
        }
    }

}
